package it.javaweb.dao.jdbc;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.simple.ParameterizedRowMapper;
import it.javaweb.beans.*;

public class ProfiloRowMapper implements ParameterizedRowMapper<Profilo> {

	@Override
	public Profilo mapRow(ResultSet rs, int rowNum) throws SQLException {
		Profilo profilo = new Profilo();
		profilo.setID(rs.getInt("ID"));
		profilo.setDescrizione(rs.getString("descrizione"));
		return profilo;
	}

}
